package com.lagou.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 商品类
 *     id INT PRIMARY KEY AUTO_INCREMENT COMMENT '商品id',
 *     `name` VARCHAR(20) COMMENT '商品名称',
 *     `type` VARCHAR(20) COMMENT '商品分类',
 *     price DOUBLE COMMENT '商品价格',
 *     stock INT DEFAULT '0' COMMENT '商品库存',
 *     `status` INT DEFAULT '0' COMMENT '商品上架状态, 0-下架, 1-上架'
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class Goods {
    private int id;
    private String name;
    private String type;
    private double price;
    private int stock;
    private int status;
}
